/*
 * @Author: “Jackson” “1145239633@qq.com”
 * @Date: 2025-07-28 09:16:29
 * @LastEditors: “Jackson” “1145239633@qq.com”
 * @LastEditTime: 2025-09-22 17:16:00
 * @FilePath: \shaangu-web\src\api\fileManage\entering.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询任务信息列表
export function listTaskInfo(query) {
  return request({
    url: '/product/taskInfo/list',
    method: 'get',
    params: query
  })
}


// 校对
export function proofreadList(query) {
  return request({
    url: '/product/taskInfo/proofreadList',
    method: 'get',
    params: query
  })
}
// 审批
export function approveList(query) {
  return request({
    url: '/product/taskInfo/approveList',
    method: 'get',
    params: query
  })
}

// 查询任务信息详细
export function getTaskInfo(id) {
  return request({
    url: '/product/taskInfo/' + id,
    method: 'get'
  })
}

// 新增任务信息
export function addTaskInfo(data) {
  return request({
    url: '/product/taskInfo',
    method: 'post',
    data: data
  })
}

// 修改任务信息
export function updateTaskInfo(data) {
  return request({
    url: '/product/taskInfo',
    method: 'put',
    data: data
  })
}

// 删除任务信息
export function delTaskInfo(id) {
  return request({
    url: '/product/taskInfo/' + id,
    method: 'delete'
  })
}

// 提交
export function taskSubmit(data) {
  return request({
    url: '/product/taskInfo/submit',
    method: 'post',
    data
  })
}
// 校验

export function taskverify(data) {
  return request({
    url: '/product/taskInfo/verify',
    method: 'post',
    data
  })
}
// 核验

export function taskverification(data) {
  return request({
    url: '/product/taskInfo/verification',
    method: 'post',
    data
  })
}

// 导入

export function taskInfoImport(data) {
  return request({
    url: '/product/taskInfo/import',
    method: 'post',
    data,
        headers: {
      'Content-Type': 'multipart/form-data'
    },
  })
}

